import Axios from '../utils/axios'
import api from '../api'

// 获取成员列表
function getMemberList() {
    return Axios.get(api.settings.MEMBER_SELECT);
}

// 成员启用/禁用
function updateMemberStatus(id: number, status: number) {
    return Axios.post(api.settings.MEMBER_UPDATE_STATUS, { id, status })
}

// 根据id获取成员
function getMmeberById(id: number) {
    id ? id : ""
    return Axios.get(api.settings.MEMBER_GET_BY_ID + id)
}








export default {
    getMemberList,
    updateMemberStatus,
    getMmeberById,
}